.class public Les/g7;
.super Ljava/lang/Object;
.source "DownloadRequestQueueManager.java"


# static fields
.field private static a:Lcom/android/volley/i;


# direct methods
.method public constructor <init>()V
    .locals 0

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public static a(Landroid/content/Context;)Lcom/android/volley/i;
    .locals 2

    .line 1
    sget-object v0, Les/g7;->a:Lcom/android/volley/i;

    if-nez v0, :cond_1

    .line 2
    const-class v0, Les/g7;

    monitor-enter v0

    .line 3
    :try_start_0
    sget-object v1, Les/g7;->a:Lcom/android/volley/i;

    if-nez v1, :cond_0

    .line 4
    invoke-static {p0}, Les/g7;->b(Landroid/content/Context;)V

    .line 5
    :cond_0
    monitor-exit v0

    goto :goto_0

    :catchall_0
    move-exception p0

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw p0

    .line 6
    :cond_1
    :goto_0
    sget-object p0, Les/g7;->a:Lcom/android/volley/i;

    return-object p0
.end method

.method private static b(Landroid/content/Context;)V
    .locals 4

    .line 1
    sget-boolean v0, Les/u6;->b:Z

    sput-boolean v0, Lcom/android/volley/m;->b:Z

    .line 2
    new-instance v0, Ljava/io/File;

    invoke-virtual {p0}, Landroid/content/Context;->getCacheDir()Ljava/io/File;

    move-result-object p0

    const-string v1, "downloadCache"

    invoke-direct {v0, p0, v1}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V

    .line 3
    new-instance p0, Les/r;

    invoke-direct {p0}, Les/r;-><init>()V

    .line 4
    new-instance v1, Lcom/android/volley/d;

    new-instance v2, Landroid/os/Handler;

    .line 5
    invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;

    move-result-object v3

    invoke-direct {v2, v3}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V

    invoke-direct {v1, v2}, Lcom/android/volley/d;-><init>(Landroid/os/Handler;)V

    .line 6
    new-instance v2, Les/h7;

    invoke-direct {v2, p0, v1}, Les/h7;-><init>(Les/q;Lcom/android/volley/k;)V

    .line 7
    new-instance p0, Lcom/android/volley/i;

    new-instance v3, Les/m;

    invoke-direct {v3, v0}, Les/m;-><init>(Ljava/io/File;)V

    const/4 v0, 0x4

    invoke-direct {p0, v3, v2, v0, v1}, Lcom/android/volley/i;-><init>(Lcom/android/volley/a;Lcom/android/volley/f;ILcom/android/volley/k;)V

    sput-object p0, Les/g7;->a:Lcom/android/volley/i;

    .line 8
    invoke-virtual {p0}, Lcom/android/volley/i;->b()V

    return-void
.end method
